package com.demo.mvc.ioc;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Data
@Component
public class AnimalConfig03 {
  @Value("#{'abc'}")
  private String v01;
  @Value("#{T(System).currentTimeMillis()}")
  private long v02;
  @Value("#{animalConfig03.v01 eq 'abc'}")
  private boolean v04;
  @Value("#{animalConfig03.v01?.toUpperCase() eq 'abc'}")
  private boolean v05;
}
